<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index09-3</title>
</head>
<body>
index09-3内容
<br />
<input type="button" value="回退" onclick="gotoBack()"/>
<script type="text/javascript">

  function gotoBack(){
    console.log("回退");
    // 执行回退的功能
    window.history.back();
  }

</script>
</body>
</html>